{% extends "common/nav.html" %}
{% set home_url = url_for('school.list_teachers') %}
{% set manage_system_name = translate('机构管理系统') %}
{% block brand %}
{{translate('机构管理系统')}}
{% endblock %}

{% block release_note_link %}
{% endblock %}

{% block profile %}
    <label class="norequired"><span>{{translate('欢迎您')}}：{{ current_user.school.display_name or current_user.school.name }}，{{ translate(current_user.name) }}</span></label>
    <a href="{{ url_for('school.logout') }}" class="btn btn-default">{{translate('退出')}}</a>
{% endblock %}

{% block main_menu_left %}
    <li><a href="/school/index"><i class="iconfont icon-homeicon"></i>{{translate('首页')}}</a></li>
    {% if current_user.is_admin %}
    <li><a href="{{ url_for('school.list_teachers') }}"><i class="iconfont icon-user"></i><span class="h-changeline">{{translate('教师账号管理')}}</span></a></li>
    {% endif %}
    <li><a href="{{ url_for('school.list_students') }}"><i class="iconfont icon-group"></i><span class="h-changeline">{{translate('学生账号管理')}}</span></a></li>
    <li><a href="{{ url_for('school.list_classrooms') }}"><i class="iconfont icon-iconbuilding"></i>{{translate('教室管理')}}
      {% for d in charge_fee_array %}
        {% if d.about_to_expire and not in_user_verify_whitelist %}
            <div class="superior"><div class="superior-word superior-nav">{{translate('即将到期')}}</div></div>
            {% break %}
        {% endif %}
      {% endfor %}
        </a></li>
    <li><a href="{{ url_for('school.list_classes') }}"><i class="iconfont icon-classroom"></i>{{translate('班级管理')}}</a></li>

{% if current_user.is_admin and request.args.get('lang', 'cn') == 'cn' %}
  <li id="li_real_name_auth"><a href="{{ url_for('school.get_real_name_auth') }}"><i class="iconfont icon-kzyclass"></i>{{ translate('申请经销店') }}</a></li>
{% endif %}

    <li><a href="{{ url_for('school.account_settings') }}"><i class="iconfont icon-setting"></i>{{translate('账号设置')}}</a></li>
{#    {% if current_user.is_admin%}#}
{#        <li><a href="{{ url_for('school.chpass') }}"><i class="iconfont icon-setting"></i>{{translate('修改密码')}}</a></li>#}
{#    {% else %}#}
{#        <li><a href="{{ url_for('school.account_settings') }}"><i class="iconfont icon-setting"></i>{{translate('账号设置')}}</a></li>#}
{#    {% endif %}#}

    {#
    {% if not current_user.is_admin %}
    <li><a href="{{ url_for('school.teacher_comment_list') }}"><i class="iconfont icon-write"></i>{{translate('教师评价')}}</a></li>
    {% endif %}
    #}
{% endblock %}
